home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / program / nwlib15.zip / SOURCE.ZIP / INCLUDE.INT next >
Text File  |  1996-06-06  |  8KB  |  310 lines

  1. const
  2.   { Object Types }
  3.   nw_badObject     = $0000 ;
  4.   nw_user          = $0100 ;
  5.   nw_group         = $0200 ;
  6.   nw_printq        = $0300 ;
  7.   nw_server        = $0400 ;
  8.   nw_jobServer     = $0500 ;
  9.   nw_gateway       = $0600 ;
  10.   nw_printServer   = $0700 ;
  11.   nw_archiveQueue  = $0800 ;
  12.   nw_archiveServer = $0900 ;
  13.   nw_jobQueue      = $0A00 ;
  14.   nw_Administration= $0B00 ;
  15.   nw_nasSNAServer  = $2100 ;
  16.   nw_RemoteBridge  = $2600 ;
  17.   nw_TCPIPGateway  = $2700 ;
  18.  
  19.   { Broadcast Modes }
  20.   nw_caston        = 0   ;
  21.   nw_castoff       = $01 ;
  22.   nw_castserver    = $03 ;
  23.  
  24.   { Returned Path Formats }
  25.   nw_format_netware       = 0 ;
  26.   nw_format_server_volume = $01 ;
  27.   nw_format_drive         = $02 ;
  28.   nw_format_unc           = $03 ;
  29.  
  30.   { Internal Definitions }
  31.   word_local              = 'Local'  ;
  32.  
  33.   { Bindery Types }
  34.   type_set                = $02 ;
  35.   type_item               = 0   ;
  36.  
  37.   { netware file open modes }
  38.   nw_file_normal          = 0   ;
  39.   nw_file_readOnly        = $01 ;
  40.   nw_file_hidden          = $02 ;
  41.   nw_file_system          = $04 ;
  42.   nw_file_execute_only    = $08 ;
  43.   nw_file_directory       = $10 ;
  44.   nw_file_needsArchived   = $20 ;
  45.   nw_file_shareable       = $80 ;
  46.  
  47.   { nds context keys }
  48.   nds_key_flags           = $01 ;
  49.   nds_key_confidence      = $02 ;
  50.   nds_key_contextname     = $03 ;
  51.   nds_key_transportType   = $04 ;
  52.   nds_key_referralScope   = $05 ;
  53.  
  54.   nds_read                = 3  ;
  55.   nds_compare             = 4  ;
  56.   nds_search              = 6  ;
  57.   nds_add_entry           = 7  ;
  58.   nds_modify_entry        = 9  ;
  59.   nds_read_attr_def       = 12 ;
  60.   nds_define_class        = 14 ;
  61.   nds_read_class_def      = 15 ;
  62.   nds_modify_class_def    = 16 ;
  63.   nds_search_filter       = 28 ;
  64.  
  65.   nds_add_attribute       = $00 ;
  66.   nds_remove_attribute    = $01 ;
  67.   nds_add_value           = $02 ;
  68.   nds_remove_value        = $03 ;
  69.  
  70.   nds_entry_browse        = $0001 ;
  71.   nds_entry_add           = $0002 ;
  72.   nds_entry_delete        = $0004 ;
  73.   nds_entry_rename        = $0008 ;
  74.   nds_entry_supervisor    = $0010 ;
  75.  
  76.   nds_attr_compare        = $0001 ;
  77.   nds_attr_read           = $0002 ;
  78.   nds_attr_write          = $0004 ;
  79.   nds_attr_self           = $0008 ;
  80.   nds_attr_supervisor     = $0020 ;
  81.  
  82.   nds_sms_scan            = $0001 ;
  83.   nds_sms_backup          = $0002 ;
  84.   nds_sms_restore         = $0004 ;
  85.   nds_sms_rename          = $0008 ;
  86.   nds_sms_delete          = $0010 ;
  87.   nds_sms_admin           = $0020 ;
  88.  
  89.   max_rdn_chars           = 127 ;
  90.   max_dn_chars            = 254 ;
  91.   max_schema_name_chars   = 31  ;
  92.   max_rdn_bytes           = (2*(max_rdn_chars+1)) ;
  93.   max_dn_bytes            = (2*(max_dn_chars+1)) ;
  94.   max_schema_name_bytes   = (2*(max_schema_name_chars+1)) ;
  95.   max_asn1_name           = 31;
  96.   max_value               = (63 * 1024) ;
  97.   max_message             = $10000 ;
  98.   no_more_iterations      = -1 ; {0xffffffffl}
  99.  
  100.   ftok_end                = 0  ;
  101.   ftok_or                 = 1  ;
  102.   ftok_and                = 2  ;
  103.   ftok_not                = 3  ;
  104.   ftok_lparen             = 4  ;
  105.   ftok_rparen             = 5  ;
  106.   ftok_aval               = 6  ;
  107.   ftok_eq                 = 7  ;
  108.   ftok_ge                 = 8  ;
  109.   ftok_le                 = 9  ;
  110.   ftok_approx             = 10 ;
  111.   ftok_aname              = 14 ;
  112.   ftok_present            = 15 ;
  113.   ftok_rdn                = 16 ;
  114.   ftok_basecls            = 17 ;
  115.  
  116.   DSV_UNUSED_0                = 0  ;
  117.   DSV_RESOLVE_NAME            = 1  ;
  118.   DSV_READ_ENTRY_INFO            = 2  ;
  119.   DSV_READ                = 3  ;
  120.   DSV_COMPARE                = 4  ;
  121.   DSV_LIST                = 5  ;
  122.   DSV_SEARCH                = 6  ;
  123.   DSV_ADD_ENTRY                = 7  ;
  124.   DSV_REMOVE_ENTRY            = 8  ;
  125.   DSV_MODIFY_ENTRY            = 9  ;
  126.   DSV_MODIFY_RDN            = 10 ;
  127.   DSV_DEFINE_ATTR            = 11 ;
  128.   DSV_READ_ATTR_DEF            = 12 ;
  129.   DSV_REMOVE_ATTR_DEF            = 13 ;
  130.   DSV_DEFINE_CLASS            = 14 ;
  131.   DSV_READ_CLASS_DEF            = 15 ;
  132.   DSV_MODIFY_CLASS_DEF            = 16 ;
  133.   DSV_REMOVE_CLASS_DEF            = 17 ;
  134.   DSV_LIST_CONTAINABLE_CLASSES    = 18 ;
  135.   DSV_GET_EFFECTIVE_RIGHTS    = 19 ;
  136.   DSV_ADD_PARTITION            = 20 ;
  137.   DSV_REMOVE_PARTITION            = 21 ;
  138.   DSV_LIST_PARTITIONS            = 22 ;
  139.   DSV_SPLIT_PARTITION            = 23 ;
  140.   DSV_JOIN_PARTITIONS            = 24 ;
  141.   DSV_ADD_REPLICA            = 25 ;
  142.   DSV_REMOVE_REPLICA            = 26 ;
  143.   DSV_OPEN_STREAM            = 27 ;
  144.   DSV_SEARCH_FILTER            = 28 ;
  145.   DSV_CREATE_SUBORDINATE_REF    = 29 ;
  146.   DSV_LINK_REPLICA            = 30 ;
  147.   DSV_CHANGE_REPLICA_TYPE    = 31 ;
  148.   DSV_START_UPDATE_SCHEMA     = 32 ;
  149.   DSV_END_UPDATE_SCHEMA     = 33 ;
  150.   DSV_UPDATE_SCHEMA        = 34 ;
  151.   DSV_START_UPDATE_REPLICA    = 35 ;
  152.   DSV_END_UPDATE_REPLICA    = 36 ;
  153.   DSV_UPDATE_REPLICA        = 37 ;
  154.   DSV_SYNC_PARTITION        = 38 ;
  155.   DSV_SYNC_SCHEMA        = 39 ;
  156.   DSV_READ_SYNTAXES        = 40 ;
  157.   DSV_GET_REPLICA_ROOT_ID    = 41 ;
  158.   DSV_BEGIN_MOVE_ENTRY        = 42 ;
  159.   DSV_FINISH_MOVE_ENTRY        = 43 ;
  160.   DSV_RELEASE_MOVED_ENTRY    = 44 ;
  161.   DSV_BACKUP_ENTRY        = 45 ;
  162.   DSV_RESTORE_ENTRY        = 46 ;
  163.   DSV_SAVE_DIB            = 47 ;
  164.   DSV_UNUSED_2            = 48 ;
  165.   DSV_UNUSED_3            = 49 ;
  166.   DSV_CLOSE_ITERATION        = 50 ;
  167.   DSV_UNUSED_4            = 51 ;
  168.   DSV_AUDIT_SKULKING        = 52 ;
  169.   DSV_GET_SERVER_ADDRESS    = 53 ;
  170.   DSV_SET_KEYS            = 54 ;
  171.   DSV_CHANGE_PASSWORD        = 55 ;
  172.   DSV_VERIFY_PASSWORD         = 56 ;
  173.   DSV_BEGIN_LOGIN        = 57 ;
  174.   DSV_FINISH_LOGIN        = 58 ;
  175.   DSV_BEGIN_AUTHENTICATION    = 59 ;
  176.   DSV_FINISH_AUTHENTICATION    = 60 ;
  177.   DSV_LOGOUT            = 61 ;
  178.   DSV_REPAIR_RING        = 62 ;
  179.   DSV_REPAIR_TIMESTAMPS        = 63 ;
  180.   DSV_CREATE_BACKLINK        = 64 ;
  181.   DSV_DELETE_EXTERNAL_REFERENCE    = 65 ;
  182.   DSV_RENAME_EXTERNAL_REFERENCE    = 66 ;
  183.   DSV_CREATE_ENTRY_DIR        = 67 ;
  184.   DSV_REMOVE_ENTRY_DIR        = 68 ;
  185.   DSV_DESIGNATE_NEW_MASTER    = 69 ;
  186.   DSV_CHANGE_TREE_NAME        = 70 ;
  187.   DSV_PARTITION_ENTRY_COUNT    = 71 ;
  188.   DSV_CHECK_LOGIN_RESTRICTIONS    = 72 ;
  189.   DSV_START_JOIN        = 73 ;
  190.   DSV_LOW_LEVEL_SPLIT        = 74 ;
  191.   DSV_LOW_LEVER_JOIN        = 75 ;
  192.   DSV_ABORT_LOW_LEVEL_JOIN    = 76 ;
  193.   DSV_GET_ALL_SERVERS        = 77 ;
  194.  
  195.   { Bindery Write Access Levels }
  196.   BS_ANY_WRITE    = 0 ;
  197.   BS_LOGGED_WRITE = $10 ;
  198.   BS_OBJECT_WRITE = $20 ;
  199.   BS_SUPER_WRITE  = $30 ;
  200.   BS_BINDERY_WRITE= $40 ;
  201.  
  202.   { Bindery Read Access Levels }
  203.   BS_ANY_READ     = 0 ;
  204.   BS_LOGGED_READ  = $01 ;
  205.   BS_OBJECT_READ  = $02 ;
  206.   BS_SUPER_READ   = $03 ;
  207.   BS_BINDERY_READ = $04 ;
  208.  
  209.   { Bindery Obj/Prop Flags }
  210.   BF_STATIC       = 0   ;
  211.   BF_DYNAMIC      = $01 ;
  212.   BF_ITEM         = 0   ;
  213.   BF_SET          = $02 ;
  214.  
  215.   { Trustee Rights Masks }
  216.   TA_NONE         = $00  ;
  217.   TA_READ         = $01  ;
  218.   TA_WRITE        = $02  ;
  219.   TA_OPEN         = $04  ;
  220.   TA_CREATE       = $08  ;
  221.   TA_DELETE       = $10  ;
  222.   TA_OWNERSHIP    = $20  ;
  223.   TA_SEARCH       = $40  ;
  224.   TA_MODIFY       = $80  ;
  225.   TA_ALL          = $A0  ;
  226.  
  227.   { Directory Inherited Rights Masks }
  228.   TR_NONE         = $0000 ;
  229.   TR_READ         = $0001 ;
  230.   TR_WRITE        = $0002 ;
  231.   TR_OPEN         = $0004 ;
  232.   TR_CREATE       = $0008 ;
  233.   TR_DELETE       = $0010 ;
  234.   TR_OWNER        = $0010 ;
  235.   TR_ACCESSCTRL   = $0020 ;
  236.   TR_FILESCAN     = $0040 ;
  237.   TR_MODIFY       = $0080 ;
  238.   TR_ALL          = $01FB ;
  239.   TR_SUPERVISOR   = $0100 ;
  240.   TR_NORMAL       = $00FB ;
  241.  
  242.   {file attributes}
  243.   fa_normal       = $00 ;
  244.   fa_readOnly     = $01 ;
  245.   fa_hidden       = $02 ;
  246.   fa_system       = $04 ;
  247.   fa_executeOnly  = $08 ;
  248.   fa_directory    = $10 ;
  249.   fa_needsArchive = $20 ;
  250.   fa_shareable    = $80 ;
  251.   fa_transaction  = $10 ;
  252.   fa_indexed      = $20 ;
  253.   fa_readAudit    = $40 ;
  254.   fa_writeAudit   = $80 ;
  255.  
  256.   qms_auto_start    = $08 ;
  257.   qms_entry_restart = $10 ;
  258.   qms_entry_open    = $20 ;
  259.   qms_user_hold     = $40 ;
  260.   qms_operator_hold = $80 ;
  261.  
  262.   {drive status codes}
  263.   NW_FREE_DRIVE         = $0000    ;
  264.   NW_CDROM_DRIVE        = $0400    ;
  265.   NW_LOCAL_FREE_DRIVE   = $0800    ;
  266.   NW_LOCAL_DRIVE        = $1000    ;
  267.   NW_NETWORK_DRIVE      = $2000    ;
  268.   NW_PNW_DRIVE          = $4000    ;
  269.   NW_NETWARE_DRIVE      = $8000    ;
  270.  
  271.   {sdk api error codes}
  272.   NWERROR_ALREADY_ATTACHED    = $8800 ;
  273.   NWERROR_INVALID_CONNECTION  = $8801 ;
  274.  
  275.   {internal error mode constants (1.42+) }
  276.   NWERR_none               = $0000 ;
  277.   NWE